<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Send EOF to stream</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.ssh2-scp-send.html">« ssh2_scp_send</a></li>
      <li style="float: right;"><a href="function.ssh2-sftp-chmod.html">ssh2_sftp_chmod »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.ssh2.html">SSH2 函数</a></li>
    <li>Send EOF to stream</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.ssh2-send-eof" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ssh2_send_eof</h1>
  <p class="verinfo">(PECL ssh2 &gt;= 1.3)</p><p class="refpurpose"><span class="refname">ssh2_send_eof</span> &mdash; <span class="dc-title">Send EOF to stream</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ssh2-send-eof-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ssh2_send_eof</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$channel</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Sends an EOF to the stream; this is typically used to close standard input,
   while keeping output and error alive. For example, one can send a remote
   process some data over standard input, close it to start processing, and
   still be able to read out the results without creating additional files.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ssh2-send-eof-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">channel</code></dt>

    <dd>

     <p class="para">
      An SSH stream; can be acquired through functions like <span class="function"><a href="function.ssh2-fetch-stream.html" class="function">ssh2_fetch_stream()</a></span>
      or <span class="function"><a href="function.ssh2-connect.html" class="function">ssh2_connect()</a></span>.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ssh2-send-eof-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>true</code></strong>， 或者在失败时返回 <strong><code>false</code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ssh2-send-eof-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><span class="function"><a href="function.ssh2-fetch-stream.html" class="function" rel="rdfs-seeAlso">ssh2_fetch_stream()</a> - Fetch an extended data stream</span></li>
  </ul>
 </div>


</div></div></div></body></html>